import { createRouter, createWebHistory } from "vue-router";
import Admin from "../views/Admin/index.vue";
import banner from "../views/Admin/Banner/index.vue";
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "Admin",
      redirect: Admin,
    },
    {
      name: "Admin",
      path: "/Admin",
      component: () => import("../views/Admin/index.vue"),
      children: [
        {
          path: "/banner",
          name: "banner",
          component: () => import("../views/Admin/Banner/index.vue"),
        },
      ],
    },
  ],
});

export default router;
